import 'package:flutter/material.dart';
import 'package:honeypotflutter/publicBussine/bussine_colors.dart';
import 'package:honeypotflutter/publicBussine/bussine_font.dart';
import 'package:honeypotflutter/publicBussine/bussine_image.dart';

class DeliverResultHeader extends StatelessWidget {
  final String imageName;
  final String? status;
  final String? remind;
  const DeliverResultHeader({
    super.key,
    this.imageName = "public_success",
    this.status,
    this.remind,
  });

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        Image.asset(
          MGImage.image(imageName),
          width: 80,
        ),
        Container(
          margin: EdgeInsets.only(top: 20, bottom: 20),
          width: double.infinity,
          child: Text(
            status ?? "A12格口",
            textAlign: TextAlign.center,
            style: TextStyle(
              color: MGColors.text1Color,
              fontSize: MGFont.titleFont2,
              fontWeight: FontWeight.bold,
            ),
          ),
        ),
        Text(
          remind ?? "的角度讲的角度讲",
          style: TextStyle(color: MGColors.text3Color, fontSize: MGFont.textFont1),
        )
      ],
      crossAxisAlignment: CrossAxisAlignment.center,
    );
  }
}
